<? require_once("sitemap.php"); ?>
<?php
if($HTTP_SERVER_VARS['REMOTE_USER'] == "root" && isset($_POST['action2']))
{
	echo "Please wait, rebooting bots<br>\n";
	flush();
	dumppost($HTTP_SERVER_VARS['REMOTE_USER']);
	flush();
	$Botname="agneum";
	echo "Terminating $Botname<br>\n";
	flush();
	echo exec('schtasks /end /tn ' . $Botname) . "<br>\nSleeping 3 seconds<br>\n";
	flush();
	sleep(3);
	echo "Sleep finished<br>\n";
	flush();
	echo exec('schtasks /run /tn ' . $Botname). "<br>\nTask concluded<br>\n";
	flush();
	$Botname="titanta";
	echo "Terminating $Botname<br>\n";
	flush();
	echo exec('schtasks /end /tn ' . $Botname) . "<br>\nSleeping 3 seconds<br>\n";
	flush();
	sleep(3);
	echo "Sleep finished<br>\n";
	flush();
	echo exec('schtasks /run /tn ' . $Botname). "<br>\nTask concluded<br>\n";
	flush();
	$Botname="passion";
	echo "Terminating $Botname<br>\n";
	flush();
	echo exec('schtasks /end /tn ' . $Botname) . "<br>\nSleeping 3 seconds<br>\n";
	flush();
	sleep(3);
	echo "Sleep finished<br>\n";
	flush();
	echo exec('schtasks /run /tn ' . $Botname). "<br>\nTask concluded<br>\n";
	flush();
	$Botname="nera";
	echo "Terminating $Botname<br>\n";
	flush();
	echo exec('schtasks /end /tn ' . $Botname) . "<br>\nSleeping 3 seconds<br>\n";
	flush();
	sleep(3);
	echo "Sleep finished<br>\n";
	flush();
	echo exec('schtasks /run /tn ' . $Botname). "<br>\nTask concluded<br>\n";
	flush();
	$Botname="emporium";
	echo "Terminating $Botname<br>\n";
	flush();
	echo exec('schtasks /end /tn ' . $Botname) . "<br>\nSleeping 3 seconds<br>\n";
	flush();
	sleep(3);
	echo "Sleep finished<br>\n";
	flush();
	echo exec('schtasks /run /tn ' . $Botname). "<br>\nTask concluded<br>\n";
	flush();
}
else if(isset($_POST['action']))
{
	echo "Please wait, rebooting $Botname<br>\n";
	flush();
	dumppost($HTTP_SERVER_VARS['REMOTE_USER']);
	flush();
	echo "Terminating $Botname<br>\n";
	flush();
	echo exec('schtasks /end /tn ' . $Botname) . "<br>\nSleeping 3 seconds<br>\n";
	flush();
	sleep(3);
	echo "Sleep finished<br>\n";
	flush();
	echo exec('schtasks /run /tn ' . $Botname). "<br>\nTask concluded<br>\n";
	flush();
}
else
{
	echo "<form method='POST' action='" . $_SERVER['PHP_SELF'] . "'>";
	echo "<input type='submit' name='action' value='click here to reboot $Botname'>";
	echo "</form>";
	if($HTTP_SERVER_VARS['REMOTE_USER'] == "root")
	{
		echo "<form method='POST' action2='" . $_SERVER['PHP_SELF'] . "'>";
		echo "<input type='submit' name='action2' value='click here to reboot all bots'>";
		echo "</form>";
	}
}
?>
